.products-page {
  padding: 20px;
}

/* 确保产品网格在不同屏幕尺寸下的响应式布局 */
.products-grid {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}

/* 产品卡片的样式 */
.product-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transition: none;
  margin-bottom: 40px; 
  border-bottom: 1px solid #e0e0e0; 
  padding-bottom: 0; 
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

/* 当没有搜索结果时的样式 */
.no-result {
  grid-column: 1/-1;
  text-align: center;
  color: #888;
  font-size: 16px;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.product-rank {
  font-size: 20px;
  min-width: 25px;
  font-weight: bold;
  color: #ff6154;
  text-align: right;
}

.product-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 确保内容左对齐 */
}

/* 合并重复的 product-tags 样式，移除冗余定义 */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; 
  margin-top: 5px; 
  margin-bottom: 8px;
  align-self: flex-start; 
}

.product-info h3 {
  margin: 0 0 5px 0;
  font-size: 16px; 
}

.product-info h3 a {
  color: #333;
  text-decoration: none;
}

.product-info h3 a:hover {
  color: #ff6154;
}

.description-en {
  color: #666;
  margin: 5px 0;
  font-size: 13px; 
}

.description-cn {
  color: #888;
  margin: 5px 0;
  font-size: 12px; 
  font-style: italic;
}

.product-meta {
  margin-top: 8px;
}

.tag {
  font-size: 12px;
  color: #666;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f9f9f9;
}

.product-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.upvotes {
  color: #ff6154;
}

/* 以下样式保持不变，因为无明显重复 */
.date-nav {
  margin-bottom: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-nav h2 {
  margin: 0 0 15px 0;
  color: #333;
}

.date-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-button {
  padding: 8px 16px;
  background: #e9e9e9;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: all 0.2s;
}

.date-button:hover {
  background: #ddd;
}

.date-button.active {
  background: #ff6154;
  color: white;
}

.products-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.date-tabs {
  margin-top: 18px;
  width: 1200px; 
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  background: #fff;
  padding: 10px 0 6px 0;
  padding-left: 10px; 
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 18px;
  min-width: 0;
  align-items: center;
  overflow-x: visible;
  scrollbar-width: none;
}

.date-tabs::-webkit-scrollbar {
  display: none;
}

.date-tab {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.date-tab.active {
  background: #ff6154;
  color: #fff;
}

.date-tab:hover:not(.active) {
  background: #ffeaea;
  color: #ff6154;
}

.date-tabs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  justify-content: flex-start; 
}

.nav-title-and-tabs {
  display: flex;
  align-items: center;
  gap: 5px ;
  margin-left: auto; 
  justify-content: flex-end; 
}

.search-bar {
  flex: 0 0 260px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: auto; 
}

.sub-nav-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1.5px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 18px;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
}

.search-bar input {
  width: 260px;
  padding: 8px 14px;
  border: 1.5px solid #e0e0e0; 
  border-radius: 20px;
  font-size: 15px;
  outline: none;
  background: transparent;
  padding-bottom: 6px;
  transition: border 0.2s;
}

/* 搜索框聚焦时的样式优化 */
.search-bar input:focus {
  border: 1.5px solid #ff6154; 
  box-shadow: 0 0 4px rgba(255, 97, 84, 0.3); 
}

.date-arrow {
  border: none;
  background: #fff;
  color: #888;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.date-arrow:hover {
  background: #ffeaea;
  color: #ff6154;
}

.date-arrow.left {
  margin-right: 2px;
}

.date-arrow.right {
  margin-left: 2px;
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-nav {
  display: flex;
  gap: 1px;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-left: auto;
  max-width: none;
}

.sub-nav-btn {
  padding: 7px 10px;
  border: none;
  background: none;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
  box-shadow: none;
}

.sub-nav-btn.active {
  color: #ff6154;
  font-weight: bold;
  border-bottom: 3px solid #ff6154;
  padding-bottom: 4px;
}

.sub-nav-btn:hover {
  color: #ff6154;
}

.nav-title-and-search {
  display: flex;
  align-items: center;
  gap: 20px;
}

.products-layout {
  display: flex;
  align-items: flex-start;
}

.left-nav {
  width: 150px;
  background-color: transparent; 
  padding: 20px;
  margin-top: 18px; 
  position: static;
  left: 0;
  overflow-y: auto; 
}

.left-nav button {
  width: 100%;
  padding: 10px;
  margin-bottom: 0px; 
  background-color: transparent; 
  border: none; 
  cursor: pointer;
  font-size: 18px; 
  font-weight: bold; 
  text-align: left; 
}

.left-nav ul {
  list-style-type: none;
  padding-left: 40px; 
  padding-top: 0px; 
}

.left-nav li {
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px; 
  font-weight: bold;
  background-color: transparent; 
}

.left-nav li.active {
  color: #ff6154;
  position: relative;
  background-color: transparent; 
}

.left-nav li.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 2px;
  background-color: #ff6154;
}

.products-main {
  margin-left: 1px; 
}

.best-of-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 400px; 
  display: flex;
  align-items: center;
}
